package com.amani.module.medical_supplies.biz;


import com.amani.module.medical_supplies.entity.PurchaseOrder;
import com.amani.module.medical_supplies.entity.PurchaseOrderDetail;
import com.amani.module.medical_supplies.mapper.PurchaseOrderDetailMapper;
import com.amani.module.medical_supplies.mapper.PurchaseOrderMapper;
import com.amani.module.medical_supplies.vo.PurchaseDetailVO;
import com.amani.module.medical_supplies.vo.PurchaseVO;
import com.github.wxiaoqi.security.common.biz.BaseBiz;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-08 16:23
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class PurchaseDetailBiz extends BaseBiz<PurchaseOrderDetailMapper,PurchaseOrderDetail> {
    public List<PurchaseOrderDetail> selectByPid(int pid) {
        return mapper.selectByPid(pid);
    }
    public void deleteByPid(Integer pid) { mapper.deleteByPid(pid); }
}
